/**
 * MarioEnemy_FlyingGoomba
 * @extends MarioEnemy_Patroller
 * @version 2010.12.03
 */

class MarioEnemy_FlyingGoomba extends MarioEnemy_Patroller
	placeable;

/**
 * PostBeginPlay
 * @version 2010.12.03
 */
simulated function PostBeginPlay()
{
	super.PostBeginPlay();

	//do this in defaultproperties?
	SetPhysics(PHYS_Walking);
	
	if(MyController == none)
	{
		MyController = Spawn(class'MarioEnemy_FlyingGoombaAI', self);
		MyController.SetPawn(self);		
	}
	spawnPoint = Location;
}

defaultproperties
{
	Speed = 5

	Begin Object Class=StaticMeshComponent Name=StaticMeshComponent0
		StaticMesh       = StaticMesh'MarioMeshes.flyGoomba'
		LightEnvironment = MyLightEnvironment;
	end object
	
	NPCMesh = StaticMeshComponent0
	Mesh    = SkeletalMeshComponent0
	
	Components.Add(StaticMeshComponent0);
	Health = 100;
}

function addComponents()
{
	spawnPoint.Y = spawnPoint.Y + 30;
	Destroy();
	Spawn(class'MarioEnemy_Goomba',,, spawnPoint);
}


